package game.components;

import java.awt.Color;

public class Player
{
	private Color				color;
	private int					moveablePiecesRemaining;
	private String				name;
	private StartingPosition	startPosition;

	public Player(String name, StartingPosition startPosition)
	{
		this.name = name;
		this.moveablePiecesRemaining = 33;
		this.startPosition = startPosition;

		switch (this.startPosition)
		{
		case Top:
			this.color = Color.red;
			break;
		default:
			this.color = Color.blue;
		}

	}

	public Color getColor()
	{
		return this.color;
	}

	public int getMoveablePiecesRemaining()
	{
		return this.moveablePiecesRemaining;
	}

	public String getName()
	{
		return this.name;
	}

	public StartingPosition getStartingPosition()
	{
		return this.startPosition;
	}

	public int[] getStartingRows()
	{
		switch (this.startPosition)
		{
		case Top:
			return new int[] { 0, 1, 2, 3 };
		default:
			return new int[] { 6, 7, 8, 9 };
		}
	}
}
